Hi Adrian,
to save the data in a persistent database, retrieved from a web service based on an XSD you need to lean volatile entity based on your XSD as explained in the article http://www.webratio.com/learn/learningobject/XML Scheme-Definition-Support, because the persistent entities can not be associated with it, and then save the data automatically.
When creating a Web service you must always have in addition to the "Error Response", also the "Response" Operation which is the output of the response of the web service when its operations are completed successfully as you can see from the examples in this article http://www.webratio.com/learn/learningobject/Getting-started-with-Web-Services
The logic that you should follow in order to solve your problem is:
- Create the entity volatile based on XSD
- On solicit the input is set as a parameter based sull'XSD, ie attach the XSD Provider and the relative XSD Type.
- Use the "XML I / O" component instead of "XML In". By setting the "Mode" to "Import" and associate this entity volatile component based sull'xsd.
- To save the data to the database, once you've saved on the extent volatile data received from the web service you read the data just loaded in the volatile entity and save in the persisten entity.
Let me know if the information you have been helpful.
Best regards,
Ombretta malinverno